import { Tool } from '../../../Tool';

export class ComponentMultiSelect extends Tool {
	constructor(vp) {
		super();
		this.layerQueue = vp.scene.layers.layerQueue;
	}

	start() {
		this.layerQueue.forEach((item) => {
			item.multiChoose = true;
		});
	}

	cancel() {
		this.layerQueue.forEach((item) => {
			item.multiChoose = false;
			item.releaseSelection();
		});
	}
}

ComponentMultiSelect.toolId = 'ComponentMultiSelect';
